package com.example.emqx.controller;


import com.example.emqx.entity.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "publish-feign", url = "http://localhost:9001")
public interface ExampleFeignClient {
    @RequestMapping("/publish")
    ApiResponse<String> sendMessage(@RequestParam String topic,
                                    @RequestParam String message);
}
